package com.cuhk.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cuhk.common.utils.PageUtils;
import com.cuhk.gulimall.ware.entity.WareSkuEntity;
import com.cuhk.common.to.SkuStockTo;

import java.util.Map;

/**
 * 商品库存
 *
 * @author chenyujing
 * @email torchsam@aliyun.com
 * @date 2024-06-10 14:49:06
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void updateStock(Long skuId, Long wareId, Integer skuNum);

    SkuStockTo getSkuStockVo(Long skuId);
}

